<!-- 在html标签内加入Thymeleaf名称空间的声明 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="css/edit.css">
	</head>
	<body>
		<div id="div_container">
			<div id="div_fruit_list">
				<p class="center f30">编辑库存信息</p>
				<table id="tbl_fruit">
					<form action="http://localhost:8080/fruit9/fruit.do" method="post">
						<input type="hidden" name="operation" th:value="update">
						<tr>
							<th class="w20">名称:</th>
							<td><input  name="fname" type="text" th:value="${session.fruits.fname}"></td>
						</tr>
						<tr>
							<th class="w20">单价:</th>
							<td><input type="text" name="price" th:value="${session.fruits.price}"/></td>
						</tr>
						<tr>
							<th class="w20">库存:</th>
							<td><input type="text" name="fcount" th:value="${session.fruits.fcount}"/></td>
						</tr>
						<tr>
							<th class="w20">备注:</th>
							<td><input type="text" name="remark" th:value="${session.fruits.remark}"/></td>
						</tr>
						<tr style="display: none">
							<th class="w20">备注:</th>
							<td><input type="text" name="fid" th:value="${session.fruits.fid}"/></td>
						</tr>
						<tr>
							<th colspan="2">
								<input type="submit" value="修改" name="fid" />
							</th>
					</form>


				</table>
			</div>
		</div>
	</body>
</html>
